package com.rybbaby.tss.front.tssTransitionFeesSet.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.front.tssTransitionFeesSet.dao.ITssTransitionFeesSetGroupDao;
import com.rybbaby.tss.front.tssTransitionFeesSet.entity.TssTransitionFeesSetGroup;
import com.rybbaby.tss.front.tssTransitionFeesSet.service.ITssTransitionFeesSetGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 雷春琼
 * @description 过渡收费设置数据库操作服务实现
 * @createDate 2017-08-10 上午12:43:26
 */
@Service
@Transactional
public class TssTransitionFeesSetGroupServiceImp extends BaseServiceImp<TssTransitionFeesSetGroup> implements ITssTransitionFeesSetGroupService {

    @Autowired
    private ITssTransitionFeesSetGroupDao dao;

    /**
     * 根据过渡id和类型修改
     *
     * @param feesSetId
     * @param type
     * @return
     */
    @Override
    public List<TssTransitionFeesSetGroup> getListByFeesSetIdAndType(String feesSetId, Integer type) {
        return dao.getListByFeesSetIdAndType(feesSetId,type);
    }
}
